package org.streets.database;

import java.io.File;
import java.util.Date;

/**
 * Simple bean for test purpose
 * 
 * @author dzb
 * 
 */
public class Bean {

	private Long id;
	private String description;
	private Date data;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date date) {
		this.data = date;
	}

	public String toString() {
		return id + " " + description + " " + data;
	}
	
	public static void main(String[] args) throws Exception {
		System.out.println(Thread.currentThread().getContextClassLoader().getResource(""));
		System.out.println(ClassLoader.getSystemResource(""));
		System.out.println(new File("/").getAbsolutePath());
		System.out.println(System.getProperty("user.dir"));
		System.out.println(new File(Bean.class.getResource("/").toURI()).getAbsolutePath());
	}

}
